#include <vector>
#include "IUpdateEvent.h"
#include "Collider.h"

using namespace std;

IUpdateEvent::IUpdateEvent(){
	ulist->push_back(this);
}

void IUpdateEvent::fireEvent(double time){

	vector<IUpdateEvent*>::iterator i;

	for (i = ulist->begin(); i < ulist->end(); i++)
		(*i)->update(time);
}


std::vector<IUpdateEvent*> *IUpdateEvent::ulist = new vector<IUpdateEvent*>();